package com.cn.springcloudwechat.service.articleAndMenu;

import com.cn.springcloudwechat.common.mybatis.Page;
import com.cn.springcloudwechat.model.articleAndMenu.YmVideoKnowledge;

import java.util.List;

/**
 * 视频知识
 *
 * @author: Administrator
 * @create: 2018/8/1 16:00
 */
public interface YmVideoKnowledgeService {
    /**
     * 添加视频
     *
     * @param record
     * @param attachmentId
     * @return
     */
    Long insertSelective(YmVideoKnowledge record);

    /**
     * 查询单个视频
     *
     * @param videoId
     * @return
     */
    YmVideoKnowledge selectByPrimaryKey(long videoId);

    /**
     * 更新视频
     *
     * @param record
     * @return
     */
    void updateByPrimaryKeySelective(YmVideoKnowledge record);

    /**
     * 查询所有视频
     *
     * @return
     */
    List<YmVideoKnowledge> getAllYmVideoKnowledge();

    /**
     * 根据条件查询视频
     *
     * @param record
     * @param page
     * @return
     */
    Page<Object> getAllYmVideoKnowledgeByParameter(YmVideoKnowledge record, Page<Object> page);

    /**
     * 批量更新轮播状态
     * @param videoId
     * @param state
     */
    void updateYmVideoKnowledgeState(List<Long>videoId ,short state );

}
